<?
ini_set('display_errors', 1);
        $connect=mysqli_connect("localhost","root","ingenit") or die("Unable to Connect");
        mysqli_select_db("chatdb") or die("Could not open the db");
        $showtablequery="SHOW TABLES FROM chatdb";
        $query_result=mysqli_query($showtablequery);
        while($showtablerow = mysqli_fetch_array($query_result))
        {
        echo $showtablerow[0]." ";
        }
?>